<template>
  <el-card>
    <div class="box">
      <img :src="userStore.avatar" class="avatar" />
      <div>
        <h1 class="title">{{ getTime() }}好呀!{{ userStore.username }}</h1>
        <P class="name">甄选后台管理系统</P>
      </div>
    </div>
  </el-card>
  <div class="bottoms">
    <svg-icon name="welcome" width="500px" height="500px"></svg-icon>
  </div>
</template>

<script setup lang="ts">
import useUserStrore from '../../store/modules/user';
import { getTime } from '../../utils/time';
let userStore = useUserStrore()
</script>

<style scoped lang="scss">
.box {
  display: flex;
  .avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
  }
  .title {
    font-size: 20px;
    font-weight: 900;
    margin-left: 15px;
    margin-top: 30px;
  }
  .name {
    font-size: 13px;
    margin-left: 30px;
    margin-top: 25px;
    color: skyblue;
  }
}
.bottoms {
  display: flex;
  justify-content: center;
}
</style>
